//
//  MoreViewController.m
//  B段项目
//
//  Created by 昶博 on 15/9/29.
//  Copyright (c) 2015年 昶博. All rights reserved.
//

#import "MoreViewController.h"
#import "MoreView.h"
#import "NextViewController.h"
@interface MoreViewController ()
@property(nonatomic ,retain)MoreView *moreView;
@end

@implementation MoreViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.moreView = [[MoreView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self.view addSubview:self.moreView];
    NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
    [center addObserver:self selector:@selector(pushnext:) name:@"pushnext" object:nil];

}
-(void)pushnext:(NSNotification *)cation
{
 NextViewController *next = [[NextViewController alloc]init];
    
    [self.navigationController pushViewController:next animated:YES];
     next.model = cation.object;
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
